package com.ftwj.demo.base.aop;
/**
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;

//TODO 使用AOP实现缓存
@Aspect
@Component
public class JdbcAspect {
	
	private static final Log log = LogFactory.get(JdbcAspect.class);
	
    @Pointcut("execution(public * com.ftwj.demo.base.common.*Template.*(..)))")
    public void aspect(){
 
    }

    @Before("aspect()")
    public void doBefore(JoinPoint joinPoint) {
 		log.info("【方法切入点】{}：前置通知(未完成)！",joinPoint);
    }

    @AfterReturning(returning = "ret",pointcut = "aspect()")
    public void doAfterReturning(Object ret) {
     	log.info("【方法返回值】{}：后置通知(未完成)！",ret);
    }
}
**/